package product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import product.domain.SpuInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import product.vo.SpuSaveVo;

import java.util.Map;

/**
* @author panghu
* @description 针对表【pms_spu_info(spu信息)】的数据库操作Service
* @createDate 2023-03-04 21:03:08
*/
public interface SpuInfoService extends IService<SpuInfo> {

    void saveSpuInfo(SpuSaveVo spuSaveVo);

    void saveBaseSpuInfo(SpuInfo spuInfo);

    public Page<SpuInfo> querPage(Map<String, Object> params);

    void spuUP(Long id);

    /**
     * 根据skuId查找spuInfo
     * @param skuId
     * @return
     */
    SpuInfo findSpuInfoBySkuId(Long skuId);
}
